//package com.ruyuan2020.im.xxx.second;
//
//
//
//import com.ruyuan2020.im.xxx.second.interceptor.Interceptor;
//import com.ruyuan2020.im.xxx.second.interceptor.LogInterceptor;
//import com.ruyuan2020.im.xxx.second.interceptor.TransactionInterceptor;
//
//import java.util.ArrayList;
//import java.util.List;
//
//public class Test {
//    public static void main(String[] args) {
//        List<Interceptor> interceptorList = new ArrayList<>();
//        interceptorList.add(new LogInterceptor());
//        interceptorList.add(new TransactionInterceptor());
//
////        HelloService target = new HelloServiceImpl();
//        HelloServiceImpl target = new HelloServiceImpl();
//        HelloService targetProxy = (HelloService) HWInvocationHandler.wrap(target,interceptorList);
//        targetProxy.sayHello();
//    }
//}
